How do I make processData function wait for the results from my getData function in Angular

welcome to shbcf.ru